lst = [1,2,3,4,5,6]

# while循环
i = 0
while i < len(lst):
    print(lst[i])
    i+=1


# for 循环
for i in lst:
    print(i)

# 使用枚举遍历出索引
for index,item in enumerate(lst):
    print(f'下边为{index}的值为{item}')